package khs.java_javasysmon_cpu;

import com.jezhumble.javasysmon.CpuTimes;
import com.jezhumble.javasysmon.JavaSysMon;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws Exception
    {
        JavaSysMon javaSysMon = new JavaSysMon();
        CpuTimes initialTimes = javaSysMon.cpuTimes();
        Thread.sleep(500);
        System.out.println(javaSysMon.cpuTimes().getCpuUsage(initialTimes));
    }
}
